package cn.wolfcode.p2p.business.service;

import cn.wolfcode.p2p.business.domain.RechargeOnline;
import javax.servlet.http.HttpServletRequest;
import java.math.BigDecimal;

public interface IRechargeOnlineService {

    //线上充值申请
    String apply(BigDecimal amount);

    //通过流水号查询充值记录
    RechargeOnline getTradeCode(String tradeCode);

    /**
     * 处理托管充值回调
     *
     * @param request 接收参数
     * @return 如果返回success, 托管方不会再调用该回调接口
     */
    String resultHandler(HttpServletRequest request);
}
